import java.net.MalformedURLException;
import java.rmi.registry.*;
import java.rmi.server.*;
import java.rmi.*;

public class Cliente{
        
        public static void main(String[] args) {
                System.out.println("Buscando Objeto ");
                try {
                        Interfaz interfaz = (Interfaz)Naming.lookup("rmi://localhost:3232"+"/Buscador");
                        System.out.println(interfaz.buscarTopicoArea(10, "algo"));
                        System.out.println(interfaz.buscarTopico("algo"));
                } catch (MalformedURLException e) {
                        e.printStackTrace();
                } catch (RemoteException e) {
                        e.printStackTrace();
                } catch (NotBoundException e) {
                        e.printStackTrace();
                }
        }
                
        
       
}
